package frame

import (
	"bytes"

	"gitee.com/hasika/common-server/conn/inet"
)

type IFrameReaderWriter interface {
	NonBlockSlicePacketBytes(conn inet.PublicConn) ([][]byte, error)
	BlockSlicePacketBytes(conn inet.PublicConn) ([]byte, error)
	WriteOnePacketBytes(conn inet.PublicConn, data []byte) error
	Return(*bytes.Buffer)
}
